home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 1
/
Gold Medal Software Volume 1 (Gold Medal) (1994).iso
/
prog
/
actlib17.arj
/
TOOLS.ARJ
/
GETKEY.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-05-25
|
410 b
|
23 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "tools.h"
#include <conio.h>
/***
*
* Function : getkey
*
* Description: return a 2-bytes key pressed
* (extended characters are added to 256).
*
*/
int getkey( void )
{ int car;
if ( ! (car = getch()) ) car = 256 + getch();
return car;
}